<?

	include_once($_SERVER['DOCUMENT_ROOT'] . "/includes/loader.inc.php");
	$sso = new SSO();
	$factura = $sso->factura('asadodetira.com', '1126620');
	include($_SERVER['DOCUMENT_ROOT'] . '/includes/class/lib/pdf/dompdf_config.inc.php');
	ob_start();
	$barpath = 'codigo.gif';
	include($_SERVER['DOCUMENT_ROOT'] . '/includes/tpl/factura.tpl.php');
	$html = ob_get_clean();
	$dompdf = new DOMPDF();
	$dompdf->set_base_path($_SERVER['DOCUMENT_ROOT'] . '/images/');
	$dompdf->load_html(utf8_decode($html));
	$dompdf->render();
	$dompdf->stream("sample.pdf");
	exit;

?>
